package com.yunji.base.convert;

import com.yunji.base.domain.SiteScaleDO;
import com.yunji.base.vo.SiteScaleVO;
import com.yunji.common.utils.bean.BeanUtils;

import java.util.ArrayList;
import java.util.List;

public class SiteScaleConvert {

    public static List<SiteScaleVO> domainTOVOList(List<SiteScaleDO> list) {
        List<SiteScaleVO> voList = new ArrayList<>();
        for (SiteScaleDO siteScaleDO : list) {
            voList.add(domainTOVO(siteScaleDO));
        }
        return voList;
    }

    public static SiteScaleVO domainTOVO(SiteScaleDO siteScaleDO) {
        SiteScaleVO vo = new SiteScaleVO();
        BeanUtils.clone(siteScaleDO, vo);
        return vo;
    }

}
